<?php
/**
 * Created by  青岛火一五信息科技有限公司
 * author: Zane
 * QQ  : 3186355915
 * Date: 2019/4/27
 * Time: 01:52
 */
namespace LaravelPatterns;
use LaravelPatterns\Container;
use LaravelPatterns\Leg;

require "vendor/autoload.php";

function dd($arr,$isDie=true) {
    var_dump($arr);

    if ($isDie) {
        die;
    }

}

$app = new Container();
$app->bind('LaravelPatterns\Visit', "LaravelPatterns\Leg");
$app->bind('Traveller', "LaravelPatterns\Traveller");
/** @var \LaravelPatterns\Traveller $tra */
$tra = $app->make('Traveller');
$tra->visitTibet();

